/*
 * @(#)AgentAvailablEvent.java
 *
 * 
 *
 * ver 1.0 Sep 12, 2007 ggranum
 */
package org.testfire.realm.control.agent.event;

import java.util.EventObject;

public class AgentAvailableEvent extends EventObject {

    private boolean consumed = false;


    /**
     * Constructs a prototypical Event.
     *
     * @param source The object on which the Event initially occurred.
     * @throws IllegalArgumentException if source is null.
     */
    public AgentAvailableEvent(Object source) {
        super(source);
    }

    /**
     * Consume this event, preventing it from being propogated further.
     */
    public final void consume() {
        this.consumed = true;
    }

    /**
     * Consume this event, preventing it from being propogated further.
     */
    public final boolean isConsumed() {
        return consumed;
    }


}

// eof: AgentAvailablEvent.java